@import '../_config.scss';
.wiki-show{
  background-color: $color-default;

  .page-header {
    h1.title {
      font-size: 18px;
      color: #333;
    }
    span {
      font-size: 12px;
      color: $color-normal;
      &.source {
        margin-right: 20px;
      }
    }
  }
  .page-content{
    font-size: 1.6rem;
    color: #333;
    line-height: 30px;
    overflow-x: hidden;
    padding: 0 5px;
    word-wrap: break-word;
    .summary {
      font-size: 1.6rem;
      color: #666;
      line-height: 24px;
      background: #f6f6f6;
      border: 1px solid #e2e2e2;
      padding: 10px;
      margin-bottom: 15px;
    }
    img {
      display: block;
      margin: 10px auto;
      width: 100%;
    }
    .pull-right{
      margin-top: 20px;
      display: flex;
      flex-flow: row nowrap;
      align-items: center;

      label{
        &:not(:first-child){
          width: 30px;
          height: 30px;
          background-color: #53C773;
          a, a:hover, a:focus, a:active{
            color: $color-default;
          }
          border-radius: 4px;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-right: 5px;
        }
      }
    }
  }

  .page-footer{
    margin-bottom: 30px;

    .footer-link{
      a, a:hover, a:focus, a:active{
        color: $color-normal;
        text-decoration: none;
      }
      a:hover{
        color: $color-title;
      }
    }
  }

  .article-tag{
    background-color: $color-private;
    width: 50px;
    height: 50px;
    margin-top: 40px;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    color: $color-default;
  }

  .key-tag{
    margin-top: 40px;

    h3.key-tag-title {
      font-size: 16px;
      color: $color-normal;
      margin-top: 0;
    }
    .tag-list{
      label{
        &:nth-child(9n) {
          background-color: #4a4a4a;
        }
        &:nth-child(9n+1) {
          background-color: #15a287;
        }
        &:nth-child(9n+2) {
          background-color: #5cb85c;
        }
        &:nth-child(9n+3) {
          background-color: $color-red;
        }
        &:nth-child(9n+4) {
          background-color: #567e95;
        }
        &:nth-child(9n+5) {
          background-color: #b433ff;
        }
        &:nth-child(9n+6) {
          background-color: $color-private;
        }
        &:nth-child(9n+7) {
          background-color: #b37333;
        }
        &:nth-child(9n+8) {
          background-color: #f60;
        }
        width: 46%;
        opacity: .70;
        filter: alpha(opacity = 80);
        color: #fff;
        display: inline-block;
        margin: 0 5px 5px 0;
        padding: 2px 6px;
        line-height: 21px;
        &:hover {
          opacity: 1;
          filter: alpha(opacity = 100);
        }
        font-weight: normal;
        padding: 5px 15px;
        margin-right: 8px;
        margin-bottom: 10px;
        border: 1px solid $color-border;
      }
    }
  }

  .other-article{
    h4 {
      color: $color-normal;
      font-size: 16px;
      margin-top: 0;
    }
    margin-top: 40px;
    .col-xs-12{
      padding-left: 0;
    }
    ul{
      list-style-type: none;
      margin: 0;
      padding: 0;

      li{
        padding-top: 10px;
        padding-bottom: 12px;

        a, a:hover, a:active, a:focus{
          color: $color-black;
          text-decoration: none;
        }

        a:hover{
          color: $color-title;
        }

        span.date{
          font-size: 12px;
          color: $color-normal;
        }

        .title{
          color: $color-title;
        }

        &:not(:last-child) {
          border-bottom: 1px solid $color-border;
        }
      }
    }
  }

  .activity{
    margin-top: 40px;
    .activity-title{
      font-size: 16px;
      color: $color-normal;
      margin-top: 20px;
    }
    .activity-item{
      margin-bottom: 10px;
      a{
        &, &:hover, &:focus, &:active{
          // color: $color-normal;
          color: $color-title;
          font-weight: bold;
          text-decoration: none;
        }
        &:hover{
          color: $color-private;
        }
      }
      img{
        width: 100%;
        height: 160px;
        margin-bottom: 5px;
      }
      .cut-title{
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: block-axis;
        height: 20px;
        line-height: 20px;
      }
    }
  }
}

.mobile-wiki-show{
  margin-bottom: 60px;
  .line{
    margin: 0;
    border-width: 10px;
    border-width: 2.66vw;
  }

  article{
    padding: 20px 15px;
    h1{
      margin: 0;
      font-size: 24px;
      fnot-size: 6.4vw;
      margin-bottom: 15px;
      margin-bottom: 4vw;
    }

    h2{
      margin: 0;
      margin-bottom: 15px;
      margin-bottom: 4vw;
      font-size: 15px;
      font-size: 4vw;
    }

    .article-content{
      width: 100%;
      img{
        max-width: 100%;
      }

p{
  line-height: 25px;
  line-height: 6.66vw;
  color: #666666;
  letter-spacing: 0;
  font-size: 14px;
  font-size: 3.733vw;
}
    }
  }
}
